<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<style>
	.flex {
		display: flex;
		align-items: center;
	}
	.mr2{
		margin-right:20px ;
	}
	.mt2{
		margin-top: 20px;
	}
	.top{
		padding: 30px;
		padding-bottom: 10px;
		background: #fff;
	}
	.fixed-table-toolbar{
		justify-content: space-between;
	}
	.flex{
		display: flex;
	}
	.mb2{
		padding-bottom: 20px;
	}
	.bottom{
		padding: 30px;
		background: #fff;
	}
	.label2{
		width: 120px;
	}
</style>
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
	<div class="col-sm-12">
		<div class="ibox">
			<div class="ibox-body">
				<div class="fixed-table-toolbar top flex">
					<div class="flex">
						<div class="columns mb2 mr2">
							<div class="flex">
								<div class="label2">证书类型：</div>
								<select class="form-control select" id="intention" name="intention">
									<option value="">请选择</option>
									<option value="0">常务副理事单位</option>
									<option value="1">副理事单位</option>
									<option value="2">常务理事单位</option>
									<option value="3">理事单位</option>
								</select>
							</div>
						</div>
						<div class="columns mr2 mb2">
							<div class="flex">
								<div class="label2">单位名称：</div>
								<input class="form-control select" id="name" placeholder="请输入单位名称" type="text">
							</div>
						</div>
						<div class="columns mb2 mr2">
							<div class="flex">
								<div class="label2">证书状态：</div>
								<select class="form-control select" id="status" name="status">
									<option value="">请选择</option>
									<option value="0">待生成</option>
									<option value="1">已生成</option>
								</select>
							</div>
						</div>
						<div class="flex mb2">
							<div class="columns">
								<button class="btn btn-success" onclick="reLoad()">查询</button>
							</div>
						</div>
					</div>
				</div>
				<div class="bottom mt2">
					<div class="flex">
						<div class="columns mr2">
							<button class="btn  btn-primary" shiro:hasPermission="jzweb:memberApply:getCertificateList" onclick="getCertificateList()" type="button">
								<i aria-hidden="true" class="fa fa-folder-open-o"></i>批量生成
							</button>
						</div>
						<div class="columns mr2">
							<button class="btn  btn-primary" shiro:hasPermission="jzweb:memberApply:exportUnitPdf" onclick="exportUnitPdf()" type="button">
								<i aria-hidden="true" class="fa fa-folder-open-o"></i>导出单位聘书
							</button>
						</div>
						<div class="columns mr2">
							<button class="btn  btn-primary" shiro:hasPermission="jzweb:memberApply:exportPersonalPdf" onclick="exportPersonalPdf()" type="button">
								<i aria-hidden="true" class="fa fa-folder-open-o"></i>导出个人聘书
							</button>
						</div></div>
					<table data-mobile-responsive="true" id="exampleTable">
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 -->
<div>
	<script type="text/javascript">
		var removeCertificate = 'hidden';
		var getCertificate = 'hidden';
	</script>
</div>
<div shiro:hasPermission="jzweb:memberApply:removeCertificate">
	<script type="text/javascript">
		removeCertificate = '';
	</script>
</div>
<div shiro:hasPermission="jzweb:memberApply:getCertificate">
	<script type="text/javascript">
		getCertificate = '';
	</script>
</div>
<div th:include="include :: footer"></div>
<script src="/js/webJs/jzweb/memberCertificate/memberCertificate.js" type="text/javascript"></script>
</body>
</html>